<?php
/**
 * Author: LaiGuiming
 * Time: 2017-12-01 14:19:05
 * Copyright (C) 2016 Longyan Wehome Message CO.,LTD.
 */

namespace app\admin\model;
use think\Model;

/**
 * 文件模型
 * Class File
 * @package app\admin\model
 */
class File extends Model
{
    protected $insert = ['status' => 0,'ct','mt'];

    protected $update = ['mt'];

    protected function setMtAttr()
    {
        return  date( "Y-m-d H:i:s ");
    }


    protected function setCtAttr()
    {
        return  date( "Y-m-d H:i:s ");
    }

    // 追加属性
    protected $append = [

    ];


}